#include <iostream>
#include "serve.h"

using namespace std;

int main()
{
    Serve s1;
    s1.OpenPipeForRead();

    string message;
    while (true)
    {
        if (s1.RecvPipe(&message) > 0)
        {
            std::cout << "client Say# " << message << std::endl;
        }
        else
        {
            break;
        }
    }
    std::cout << "client quit, me too!" << std::endl;
    s1.ClosePipe();
    // cout << "serve" << endl;
    return 0;
}